package com.billiards.service;

import com.billiards.config.PaginationResponse;
import com.billiards.entity.User;

import javax.servlet.http.HttpSession;
import java.util.List;


public interface UserService {
     //查询
     List<User> selectAll();

     //增加
     public int addUser(User user);
     //修改
     public int updateUser(User user);
     //删
     public int deleteUser(Integer delId);

//分页
    public PaginationResponse<User> getUserList(Integer page, Integer count);
//    Integer page,第几页   Integer count 这一页里有几条
//      返回的类型是PageInfo类型




     public String getUserByUserNameAndPassword(User user, HttpSession session);

     public List<User> getUserUsername(String name);
    // ------------- 9.3 -------------------
    boolean update(User user);
    User findById(int id);
    // --------------------------------------
}
